package com.example.demo.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TaskLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TaskLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTaskLogIdIsNull() {
            addCriterion("TASK_LOG_ID is null");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdIsNotNull() {
            addCriterion("TASK_LOG_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdEqualTo(Integer value) {
            addCriterion("TASK_LOG_ID =", value, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdNotEqualTo(Integer value) {
            addCriterion("TASK_LOG_ID <>", value, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdGreaterThan(Integer value) {
            addCriterion("TASK_LOG_ID >", value, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TASK_LOG_ID >=", value, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdLessThan(Integer value) {
            addCriterion("TASK_LOG_ID <", value, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdLessThanOrEqualTo(Integer value) {
            addCriterion("TASK_LOG_ID <=", value, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdIn(List<Integer> values) {
            addCriterion("TASK_LOG_ID in", values, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdNotIn(List<Integer> values) {
            addCriterion("TASK_LOG_ID not in", values, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdBetween(Integer value1, Integer value2) {
            addCriterion("TASK_LOG_ID between", value1, value2, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TASK_LOG_ID not between", value1, value2, "taskLogId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdIsNull() {
            addCriterion("TASK_LOG_USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdIsNotNull() {
            addCriterion("TASK_LOG_USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdEqualTo(Integer value) {
            addCriterion("TASK_LOG_USER_ID =", value, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdNotEqualTo(Integer value) {
            addCriterion("TASK_LOG_USER_ID <>", value, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdGreaterThan(Integer value) {
            addCriterion("TASK_LOG_USER_ID >", value, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TASK_LOG_USER_ID >=", value, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdLessThan(Integer value) {
            addCriterion("TASK_LOG_USER_ID <", value, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("TASK_LOG_USER_ID <=", value, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdIn(List<Integer> values) {
            addCriterion("TASK_LOG_USER_ID in", values, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdNotIn(List<Integer> values) {
            addCriterion("TASK_LOG_USER_ID not in", values, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdBetween(Integer value1, Integer value2) {
            addCriterion("TASK_LOG_USER_ID between", value1, value2, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TASK_LOG_USER_ID not between", value1, value2, "taskLogUserId");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentIsNull() {
            addCriterion("TASK_LOG_CONTENT is null");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentIsNotNull() {
            addCriterion("TASK_LOG_CONTENT is not null");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentEqualTo(String value) {
            addCriterion("TASK_LOG_CONTENT =", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentNotEqualTo(String value) {
            addCriterion("TASK_LOG_CONTENT <>", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentGreaterThan(String value) {
            addCriterion("TASK_LOG_CONTENT >", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentGreaterThanOrEqualTo(String value) {
            addCriterion("TASK_LOG_CONTENT >=", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentLessThan(String value) {
            addCriterion("TASK_LOG_CONTENT <", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentLessThanOrEqualTo(String value) {
            addCriterion("TASK_LOG_CONTENT <=", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentLike(String value) {
            addCriterion("TASK_LOG_CONTENT like", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentNotLike(String value) {
            addCriterion("TASK_LOG_CONTENT not like", value, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentIn(List<String> values) {
            addCriterion("TASK_LOG_CONTENT in", values, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentNotIn(List<String> values) {
            addCriterion("TASK_LOG_CONTENT not in", values, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentBetween(String value1, String value2) {
            addCriterion("TASK_LOG_CONTENT between", value1, value2, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogContentNotBetween(String value1, String value2) {
            addCriterion("TASK_LOG_CONTENT not between", value1, value2, "taskLogContent");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdIsNull() {
            addCriterion("TASK_LOG_TASK_ID is null");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdIsNotNull() {
            addCriterion("TASK_LOG_TASK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdEqualTo(Integer value) {
            addCriterion("TASK_LOG_TASK_ID =", value, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdNotEqualTo(Integer value) {
            addCriterion("TASK_LOG_TASK_ID <>", value, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdGreaterThan(Integer value) {
            addCriterion("TASK_LOG_TASK_ID >", value, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TASK_LOG_TASK_ID >=", value, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdLessThan(Integer value) {
            addCriterion("TASK_LOG_TASK_ID <", value, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdLessThanOrEqualTo(Integer value) {
            addCriterion("TASK_LOG_TASK_ID <=", value, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdIn(List<Integer> values) {
            addCriterion("TASK_LOG_TASK_ID in", values, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdNotIn(List<Integer> values) {
            addCriterion("TASK_LOG_TASK_ID not in", values, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdBetween(Integer value1, Integer value2) {
            addCriterion("TASK_LOG_TASK_ID between", value1, value2, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogTaskIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TASK_LOG_TASK_ID not between", value1, value2, "taskLogTaskId");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateIsNull() {
            addCriterion("TASK_LOG_DATE is null");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateIsNotNull() {
            addCriterion("TASK_LOG_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateEqualTo(Date value) {
            addCriterion("TASK_LOG_DATE =", value, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateNotEqualTo(Date value) {
            addCriterion("TASK_LOG_DATE <>", value, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateGreaterThan(Date value) {
            addCriterion("TASK_LOG_DATE >", value, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateGreaterThanOrEqualTo(Date value) {
            addCriterion("TASK_LOG_DATE >=", value, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateLessThan(Date value) {
            addCriterion("TASK_LOG_DATE <", value, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateLessThanOrEqualTo(Date value) {
            addCriterion("TASK_LOG_DATE <=", value, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateIn(List<Date> values) {
            addCriterion("TASK_LOG_DATE in", values, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateNotIn(List<Date> values) {
            addCriterion("TASK_LOG_DATE not in", values, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateBetween(Date value1, Date value2) {
            addCriterion("TASK_LOG_DATE between", value1, value2, "taskLogDate");
            return (Criteria) this;
        }

        public Criteria andTaskLogDateNotBetween(Date value1, Date value2) {
            addCriterion("TASK_LOG_DATE not between", value1, value2, "taskLogDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}